package com.zxymq.amqp.support;

import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;


/**
 * Rabbit元信息对象，用于存储交换器、队列名、消息体
 * 后期设置是否需要加密，在此对象中添加即可
 *
 * @author:
 * @date :2018/1/11
 */
@Builder(toBuilder = true)
@Getter
public class RabbitMetaMessage<T> {
    String exchange;
    String routingKey;
    @Setter
    boolean autoTrigger;
    @Setter
    boolean returnCallback;
    Object payload;
    String consumerTag;
}


